#import <UIKit/UIKit.h>

@class YLButton;

typedef void (^YLButtonOnPress)(YLButton *button);

IB_DESIGNABLE

@interface YLButton : UIButton

// 圆角弧度
@property (nonatomic,assign) IBInspectable CGFloat cornerRadius;
// 边框宽度
@property (nonatomic,assign) IBInspectable CGFloat borderWidth;
// 边框颜色
@property (nonatomic,copy) IBInspectable UIColor *borderColor;
// 圆形化
@property (nonatomic,assign) IBInspectable BOOL isRound;
// 点击缩放动画
@property (assign, nonatomic) IBInspectable BOOL touchZoom;
// 点击弹簧动画
@property (assign, nonatomic) IBInspectable BOOL touchSpring;
// 点击事件
@property (nonatomic,copy) YLButtonOnPress onPress;
// 设置图片网络路径
@property (nonatomic,copy) NSString *imageUrl;
// 设置图片本地默认图名称
@property (nonatomic,copy) NSString *imageHolder;

@end
